<li class="documentlist"> 
	<div class="filecontainer" id="divcon">
		<%= image_tag(document.files.first.icon, :alt => "rss feed", class: "document_icon") %>
		<span class="name"><%= document.name %></span>
		<p class="description" id="document_<%= document.id %>">
			<%= truncate(document.description, length: 240, separator: ' ') %>
		</p>

		<div class="prediv" id="document_preview_<%= document.id %>" onclick="location.href='<%= document_path(document) %>';"> 
			<div class="document_info">	 
				<%= image_tag('document/Platzhalter_preview.jpg', :alt => "rss feed", class: "preview_image") %>
				<%= render 'documents/document_info', document: document %>
			</div>
		</div>
	</div>
</li>

